import React from "react";
import {Router,Route,hashHistory,IndexRoute,IndexRedirect} from "react-router";
import Footer from "./footer";
import Hot from "./nav/hot";
import Category from "./nav/category";
import Mine from "./nav/mine";
import Errors from "./error";


export default class MobileIndex extends React.Component{
	// URL重定向
	render(){
		return(
            <div>               
				<Router history={hashHistory}>
					<Route path="/" component={Footer}>
						<IndexRedirect to="/hot" />
						<Route path="/hot" component={Hot}></Route>
						<Route path="/category" component={Category}></Route>
						<Route path="/mine" component={Mine}></Route>
					</Route>
					<Route path="*" component={Errors}></Route>
				</Router>
			</div>
		)
	}
}